<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<section th:class="|tab-pane fade ${result.data.notice==null?null:'show active'}|" id="modify" role="tabpanel" >
    <form th:action="@{/admin/notice/save}"
          method="post"
          enctype="multipart/form-data"
          th:object="${result.data}">

        <div class="d-none">
            <label for="noticeId">Id</label>
            <input id="noticeId" type="text" th:value="*{notice!=null?notice.noticeId:null}">
        </div>

        <div class="form-group">
            <label for="modifyNoticeTitle">Title</label>
            <input th:value="*{notice!=null?notice.noticeTitle:null}"
                   id="modifyNoticeTitle"
                   class="form-control"
                   name="noticeTitle"
                   type="text"
                   placeholder="请输入姓名..."/>
        </div>

        <label for="modifyNoticeCover"> 请选择图片</label>
        <div class="input-group mb-3">
            <div class="custom-file">
                <input th:value="*{notice!=null?notice.noticeCover:null}"
                       type="file" class="custom-file-input" id="modifyNoticeCover" name="noticeCover">
                <label class="custom-file-label" for="modifyNoticeCover">Choose file</label>
            </div>
        </div>

        <div class="form-group">
            <label for="modifyNoticeIntroduce">介绍</label>
            <textarea th:text="*{notice!=null?notice.noticeIntroduce:null}"
                      id="modifyNoticeIntroduce" class="form-control"
                      name="addNoticeIntroduce" type="text" placeholder="请输入介绍..."></textarea>
        </div>

        <div class="form-group">
            <label for="modifyNoticeCategoryId">职位</label>
            <select th:value="*{notice!=null?notice.noticeId:null}"
                    id="modifyNoticeCategoryId"
                    class="form-control"
                    name="noticeCategoryId"
                    type="text" >
                <option th:each="category,categoryState:*{noticeCategoryList}"
                        th:selected="*{(notice!=null?notice.noticeCategoryId:null)} eq ${category.noticeCategoryId}"
                        th:value="${category.noticeCategoryId}"
                        th:text="${category.noticeCategoryName}"></option>
            </select>
        </div>
        <div>

        </div>

        <div class="form-group">
            <label for="modifyNoticeContent">NoticeContent</label>
            <input th:value="*{notice!=null?notice.noticeContent:null}"
                   id="modifyNoticeContent" class="form-control"
                   name="noticeContent" type="text" placeholder="请输入专业...">
        </div>


        <button type="submit" class="mb-5 btn btn-outline-success">保存</button>

    </form>
</section>
</html>